#include "Image.h"

Image::Image(){
    
}
Image::~Image(){
        
}
double Image::getSectorSize(EnumColor sector){
    double sectorSize=0;
    for(int a=0;a<colors.size();a++){
        if(colors[a].getColorName()==sector){
                sectorSize+=colors[a].getNumPixels();
        }
    }
    if(sectorSize==0)
        return 1;
    else
        return sectorSize;
}
void Image::addColor(Color c){
    colors.push_back(c);
}

